function photos() {

	FB.getLoginStatus(function(response) {
		photosDialog();
  });
}

function photosDialog(){
    
    FB.api('/me', function(response) {
      // ALL params are OPTIONAL.  Defaults are passed in to show available params.
      $('#jfmps-container').jfmps({
        noAlbumImagesText:  'You have no images in this album.',
        noAlbumsText:  'You do not have any albums.',
        submitCallback: function(jsonData){ 
          //alert(jsonData); 
          console.debug(jsonData);
        },
        imageSubmitButton: $('#jfmps-submit-button'),
        maxPhotosSelected: 10,
        numAlbumColumns: 4,
        numPhotosColumns: 6,
        debug: false
      });
    });
}